package routes

import (
	"github.com/goravel/framework/facades"
	"github.com/hulutech-web/goravel-socket/servers"
)

func Web() {
	//ws服务
	facades.Route().Static("/uploads", "./public/uploads")
	websocketHandler := &servers.Controller{}
	facades.Route().Get("/ws", websocketHandler.Run)
	go servers.Manager.Start()
}
